var ov = 0x5c , iv = 0x36;

function hamc(k,m){
    var lk = length(k);
    if(lk > blocksize){
        key = hash(k);
     }
    if(lk < blocksize){
       var k1 = new Array(blocksize - lk); 
       k1.fill(0x00);
       k = k.concat(k1);
     }
     var o = new Array(bz);
     var i = new Array(bz);
     o.fill(0x5c);i.fill(0x36);
     for(j = 0; j < blocksize ; j++){
            o[j] = ~(o[j]|~k[j]) & (~o[j]|k[j]);
             i[j] = ~(i[j]|~k[j]) & (~i[j]|k[j]);
     }
     return hash(o.concat(hash(i.concat(m))));
}

function hash(k){
     
}